Skip to content

[ETHOSN] Only use mock inference when whole graph is offloaded#12296

Merged
leandron merged 1 commit into
apache:mainfrom
lhutton1:fix-docker-build
Aug 4, 2022
Merged

[ETHOSN] Only use mock inference when whole graph is offloaded#12296
leandron merged 1 commit into
apache:mainfrom
lhutton1:fix-docker-build

Conversation

@lhutton1
Copy link
Copy Markdown
Contributor

@lhutton1 lhutton1 commented Aug 3, 2022

The mock inference functionality is only supported when the whole graph is offloaded to the NPU, otherwise it can result in undefined behavior. This patch makes sure the mock inference functionality is not run on test cases where some parts of the graph are not offloaded to the NPU, while ensuring the module is still built as a sanity check.

cc @Leo-arm @manupa-arm @leandron

@lhutton1
Copy link
Copy Markdown
Contributor Author

lhutton1 commented Aug 3, 2022

This is expected to fix the docker image validation. See: https://ci.tlcpack.ai/job/docker-images-ci/job/daily-docker-image-validate/180/

The mock inference functionality is only supported when the whole
graph is offloaded to the NPU, otherwise it can result in undefined
behaviour. This patch makes sure the mock inference functionality is
not run on test cases where some parts of the graph are not offloaded
to the NPU, while ensuring the module is still built as a sanity check.

Change-Id: I27052d118ff976f9adbfc3f5b5b96185318e1573
Copy link
Copy Markdown
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leandron leandron merged commit 9f360a0 into apache:main Aug 4, 2022
@lhutton1 lhutton1 deleted the fix-docker-build branch August 9, 2022 11:13
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…e#12296)

The mock inference functionality is only supported when the whole
graph is offloaded to the NPU, otherwise it can result in undefined
behaviour. This patch makes sure the mock inference functionality is
not run on test cases where some parts of the graph are not offloaded
to the NPU, while ensuring the module is still built as a sanity check.

Change-Id: I27052d118ff976f9adbfc3f5b5b96185318e1573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants